Skip to content

Add structured output support for deepresearch#20

Merged
yorkeccak merged 1 commit intomainfrom
feature/deepresearch-structured-output
Mar 31, 2026
Merged

Add structured output support for deepresearch#20
yorkeccak merged 1 commit intomainfrom
feature/deepresearch-structured-output

Conversation

@yorkeccak
Copy link
Copy Markdown
Contributor

Summary

  • Add --structured <json> and --structured-file <path> options to deepresearch create for structured output
  • Inline JSON for AI agents, file-based for humans who don't want to wrestle with shell escaping
  • Passes structured_output to the API, renders structured data in task completion output
  • Bumps version to 1.0.2

Test plan

  • pnpm typecheck passes
  • pnpm build succeeds
  • pnpm test - 33/33 tests pass
  • Manual test: valyu deepresearch create "query" --structured '{"key":"type"}'
  • Manual test: valyu deepresearch create "query" --structured-file schema.json
  • Verify mutual exclusion error when both flags used
  • Verify invalid JSON error with helpful tip

Support JSON schema via --structured (inline) and --structured-file
(read from file) on deepresearch create. Passes structured_output
to the API and renders structured data on task completion.

Bump to 1.0.2.
@yorkeccak yorkeccak merged commit 834e2c8 into main Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant